package com.iss.card.webservice;
/**
 * value for htpp request.
 */
public class WebServiceManager {

	/**
	 * address prefix of pic. for release.
	 */
//	public static String imageDownURL = "http://42.121.122.153";
//	// for debug.
	public static String imageDownURL = "http://42.121.122.153:7777";
//	/**
//	 * addr of service.
//	 */
	public static String serviceURL = imageDownURL + "/Webservice";
	
	public final static String uploadURL = imageDownURL + "/UploadImageHandler.ashx"; 
	
	public static class WebServiceUrlPortManager{
		
		/**
		 * store list.
		 */
		public static final String ACTION_URL_PORT_SHOPS_INFO = "C_getStoreList";
		
		/**
		 * my card bag.
		 */
		public static final String ACTION_URL_PORT_CARD_INFO = "C_getMyCardList";
		
		/**
		 * store's product list by store id.
		 */
		public static final String ACTION_URL_PORT_PRODUCT_INFO = "C_getProductListByStoreID";
		
		/**
		 * get vip card info list by card id.
		 */
		public static final String ACTION_URL_PORT_VIP_ORDER = "C_getMyCardBasicInfoByCardID";
		
		/**
		 * get Vip card 's history list by card id.
		 */
		public static final String ACTION_URL_PORT_CARD_HISTORY_TRACE = "C_getHistoryOrderListByCardID";
		
		/**
		 * get other store's addr which refers to the store by cardid.
		 */
		public static final String ACTION_URL_PORT_STORE_CARD_ADDRESS = "C_getStoreAddressListByCardId";
		
		/**
		 *regesiter user.
		 */
		public static final String ACTION_URL_PORT_ACCOUNT_REGISTER = "C_registerUser";
		
		/**
		 * user login.
		 */
		public static final String ACTION_URL_PORT_ACCOUNT_LOGIN = "C_logIn";
		
		/**
		 * forget password.
		 */
		public static final String ACTION_URL_PORT_SEND_MESSAGE = "C_resetPassword";
		
		/**
		 * change password.
		 */
		public static final String ACTION_URL_PORT_CHANGE_PASSWORD = "C_changePassword";
		
		/**
		 * get random store info by Shake the phone.
		 */
		public static final String ACTION_URL_PORT_CHAKE_RESUTIL = "C_getRandomStore";
		
		/**
		 * feed back.
		 */
		public static final String ACTION_URL_PORT_FEED_BACK = "C_sendFeedBack";
		
		/**
		 * store's info list around current store.
		 */
		public static final String ACTION_URL_PORT_NEAR_STORE = "C_getRoundStoreList";
		
		/**
		 * collecting one of store's products.
		 */
		public static final String ACTION_URL_PORT_COLLECTION = "C_markProduct";
		
		
		//new added.
		/**
		 * get collectioned list.
		 */
		public static final String ACTION_URL_PORT_COLLECTIONED_INFO = "C_getMyMarkedProductList";
		
		/**
		 * get city list.
		 */
		public static final String ACTION_URL_PORT_CITYLIST = "C_getCityList";
		
		/**
		 * get verification code  by phone msg. 
		 */
		public static final String ACTION_URL_PORT_CHECKING_MESSGE = "C_getCaptcha";
		
		/**
		 * Payment for the order.
		 */
		public static final String ACTION_URL_PORT_PAYFORMENT = "C_payPendingOrder";
		
		/**
		 * order list of no pay.
		 */
		public static final String ACTION_URL_PORT_NO_PAY_ORDERLIST = "C_getPendingOrderList";
		
		/**
		 * get retrun order list by order id.
		 */
		public static final String ACTION_URL_PORT_RETURN_ORDER = "C_getReturnOrderListByOrderID";
		
		
		// NEW ADD
		
		/*
		 * store basic detail info by store id
		 * 
		 * @param
		 * storeID: store id
		 * @return
		 * storeName: store Name
		 * storeAddress: store Address
		 * storeLatitude: latitude for this store
		 * storeLongitude: longitude for this store
		 * storeOwnerID: user id for this store
		 * storeOwenerName: user name for this store
		 * storeMobile: store mobile
		 */
		public static final String ACTION_URL_PORT_STORE_DETAIL_INFO_BY_ID= "C_getStoreBasicDetailInfoByStoreID";
		
		
		/*
		 * Store list by stroe type
		 * @param
		 * storeType
		 * @return 
		 * List <StoreModel>
		 */
		public static final String ACTION_URL_POST_STORE_LIST_BY_TYPE = "C_getStoreListByStoreType";
		
		
		/*
		 * get store category list
		 * @param
		 * category
		 * @return
		 * List <StoreCategory>
		 */
		public static final String ACTION_URL_PORT_GET_TYPE_BY_CATEGORY = "C_getTypeByCategory";
		
		/**
		 * get card list which store id support
		 * @param
		 * mobile
		 * @param
		 * storeid
		 */
		public static final String ACTION_URL_PORT_GET_CARD_BY_STORE_ID = "C_getMyCardByStoreID";
	}
	
	
	/**
	 * �ӿڲ������
	 */
	public static class WebServiceRegistrationParameter{
		/**
		 * �˻�ע��ӿڴ��ݲ������
		 *//*
		public static final String[] USER_REGISTRATION_PARAMETER = {
			"mobile", //0 �ֻ���� String
			"password",	//1 �û����� String
			"username", //2 �û���� String
			"email" //3 �û����� String
			};*/
		
		public static final String[] CITY_LIST_PARAMETER = {
			
		};
		
		/**
		 * ������Ϣ�ӿڴ��ݲ������
		 */
		public static final String[] SHOPS_INFO_PARAMETER = {
		};
		
		/***
		 * �ղ�
		 */
		public static final String[] COLLECTION_GETINFO_PARAMETER = {
			"mobile"
		};
		
		/**
		 * �ҵĿ�����Ϣ�ӿڴ��ݲ������
		 */
		public static final String[] CARD_INFO_PARAMETER = {
			"mobile", //0 �ֻ����
			//"str" //1 �����
		};
		
		/**
		 * ��ȡ������Ʒ��Ϣ�ӿڴ��ݲ������
		 */
		public static final String[] PRODUCT_INFO_PARAMETER = {
			"storeID", //0 ����ID
			"mobile"
		};
		
		/**
		 * C_getMyCardBasicInfoByCardID
		 */
		public static final String[] PRODUCT_VIP_ORDER_PARAMETER  = {
			"cardId", 
			"mobile" 
		};
		
		/**
		 * C_getHistoryOrderListByCardID
		 */
		public static final String[] PRODUCT_CARD_HISTORY_TRACE_PARAMETER  = {
			"cardId", 
			"mobile" 
		};
		
		/**
		 * C_getStoreAddressListByCardId
		 */
		public static final String[] PRODUCT_STORE_CARD_ADDRESS = {
			"cardId"
		};
		
		/**
		 * �˻�ע��ӿڴ��ݲ������
		 */
		public static final String[] PRODUCT_ACCOUNT_REGISTER = {
			"mobile", // 0 �ֻ����
			"userName", // 1 ����
			"password", // 2 �˻����
			"captcha" // 3��֤��
		};
		
		/**
		 * �û���¼�ӿڴ��ݲ������
		 */
		public static final String[] PRODUCT_ACCOUNT_LOGIN = {
			"mobile", // 0 �ֻ����
			"password" // 1 ����
		};
		
		/**
		 * ������뷢����Ϣ�ӿڴ��ݲ������
		 */
		public static final String[] PRODUCT_SEND_MESSAGE = {
			/*"mobile", // 0 �ֻ����
			"email" // 1 ���� 
*/			
			"mobile",  //0 user mobile phone
			"captcha"  //1 captcha number
		};
		
		/**
		 * �޸����뷢����Ϣ�ӿڴ��ݲ������
		 * @parammobile: 
		 * mobile phone number
         * oldPassword: original password
		 * newPassword: new password
		 * 
		 */
		public static final String[] PRODUCT_CHANGE_PASSWORD = {
			//modified by qiubo at 2013-03-20 begin 
//			"mobile", // 1 �ֻ����
//			"oldpwd", // 2 ������
//			"newpwd" // 3������
			"mobile", //0�û�ID
			"oldPassword", // 2 ������
			"newPassword" // 3������
			//modified by qiubo at 2013-03-20 end
		};
		
		/**
		 * ҡһҡ�ӿڴ��ݲ������
		 */
		public static final String[] PRODUCT_SHAKE_RESUTIL = {
			"cityId", // 0 �������
		};
		
		/**
		 * ������ӿڴ��ݲ������
		 */	
		public static final String[] PRODUCT_FEED_BACK = {
			"mobile", // 0 �ֻ����
			"message" // 1 ��������
		};
		
		/**
		 * ��Χ���̽ӿڴ��ݲ������
		 */
		public static final String[] PRODUCT_NEAR_STORE = {
			"latitude", // 0 ����  longitude
			"longitude", // 1 γ�� latitude
			"radius" // 2 ��Χ(����) range	
		};
		
		/**
		 * �ղص���
		 */
		public static final String[] PRODUCT_COLLECTION = {
			"mobile",//��¼ID
			"storeId",//����ID
			"productId",//��ƷID
			"isMark"//�ղ�״̬
		};

		//add by qiubo at 2013-03-21 begin			
		/**
		 * ע���û�ʱ��ȡ��֤�봫�ݲ������
		 */
		public static final String[] ACCOUNT_REGISTER_GETCAPTCHA = {
			"mobile", // 0 �ֻ����
			"caller" // 1 ��־λ��1��ע����֤��)
		};
		//add by qiubo at 2013-03-21 end
		
		/*
		 * get store list by store type
		 * C_getStoreLIstByStoreType
		 * @param
		 * storeType
		 */
		public static final String[] PARAMETERS_STORE_LIST_BY_TYPE = {
			"storeType"
		};
		
		/*
		 * get store detail info by store id
		 * C_getStoreBasicDetailInfoByStoreID
		 * @param
		 * storeType
		 */
		public static final String[] PARAMETERS_GET_STORE_INFO_BY_ID ={
			"storeID"
		};
		
		/*
		 * Get category
		 * C_getTypeByCategory
		 * @param
		 * category
		 */
		public static final String[] PARAMETERS_GET_TYPE_BY_CATEGORY = {
			"category"
		};
		
		/**
		 * 
		 * C_getPendingOrderList
		 * @param mobile: mobile phone number
		 * 
		 */
		public static final String[] PARAMETERS_GET_NO_PAY_ORDER_LIST = {
			"mobile"
		};
	
		/**
		 * C_payPendingOrder
		 */
		public static final String[] PARAMETERS_PAY_PENDING_ORDER = {
			"orderId",
			"isPay"
		};
		
		/**
		 * 
		 */
		public static final String[] PARAMETERS_RETURN_ORDER = {
			"orderId"
		};
		
		/*
		 * C_getMyCardByStoreID
		 */
		public static final String[] PARAMETERS_GET_CARD_LIST_BY_STORE_ID = {
			"mobile",
			"storeId"
		};
	}

}
